package ai.langchain;

import dev.langchain4j.model.language.LanguageModel;
public class DeepSeekLangchainDemo {

    public static void main(String[] args) {
        // 初始化自定义模型
        LanguageModel model = new OllamaDeepSeekModel();

        // 执行查询
        String prompt = "用 Java 实现快速排序算法";
        String response = model.generate(prompt).content();

        System.out.println("=== DeepSeek 响应 ===");
        System.out.println(response);
    }
}